﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE.Product.BasicList;
using ERP_RORZE.Product.PartData;
using ERP_RORZE.Product.Machine;
using ERP_RORZE.Product.UserControls;
using ERP_RORZE.Product.MO;
using ERP_RORZE.Product.PartHandling;
using ERP_RORZE.Product.Deadline;
using ERP_RORZE.Product.MonthlyCharge;
using ERP_RORZE.Product.Quotation;
using ERP_RORZE.Product.WTS;

namespace ERP_RORZE.Product
{
    public partial class ctrl_ProductMain : DevExpress.XtraEditors.XtraUserControl
    {
        ctrlSection ctrlSetion = new ctrlSection();
        ctrlExpence ctrlExpence = new ctrlExpence();
        ctrlJig ctrlJig = new ctrlJig();
        ctrlOption ctrlOption = new ctrlOption();
        ctrlWork ctrlWork = new ctrlWork();

        //
        ctrlPartList ctrlPartlist = new ctrlPartList();
        ctrlPartMaterial ctrlPartmaterial = new ctrlPartMaterial();
        ctrlOptionData ctrlOptiondata = new ctrlOptionData();

        //
        ctrlMachineList ctrlMachine = new ctrlMachineList();
        ctrlMachineGroup ctrlMachineGroup = new ctrlMachineGroup();
        ctrlMachineDailyTime ctrlMachineDailytime = new ctrlMachineDailyTime();
        ctrlMachineCapacity ctrlMachinecapacity = new ctrlMachineCapacity();

        //
        ctrlBusOderList ctrlBusoderlist = new ctrlBusOderList();
        CtrlBusOderCancel ctrlBusodercancel = new CtrlBusOderCancel();
        ctrlBusOderDeadline ctrlBusoderDeadline = new ctrlBusOderDeadline();
        ctrlBusOderQtyChange ctrlBusoderqtychange = new ctrlBusOderQtyChange();

        //
        ctrlMOList ctrlMO = new ctrlMOList();
        ctrlMOActualPrice ctrlMOActual = new ctrlMOActualPrice();
        ctrlMOFinish ctrlMOFinish = new ctrlMOFinish();
        ctrlMOMaterial ctrlMOMat = new ctrlMOMaterial();
        ctrlMONGCheckDetail ctrlMONGcheckdetail = new ctrlMONGCheckDetail();
        ctrlMONGCheckInput ctrlMONGcheckinput = new ctrlMONGCheckInput();
        ctrlMONoUpdate ctrlMONoupdate = new ctrlMONoUpdate();
        ctrlMOOption ctrlMOoption = new ctrlMOOption();
        ctrlMOOptionStatus ctrlMOoptionstatus = new ctrlMOOptionStatus();
        ctrlMOQtyChange ctrlMOQtychange = new ctrlMOQtyChange();
        ctrlMOQtyStatus ctrlMOQtystatus = new ctrlMOQtyStatus();
        ctrlMOSelect ctrlMOselect = new ctrlMOSelect();
        ctrlMOSheetView ctrlMOsheetview = new ctrlMOSheetView();
        ctrlMOStart ctrlMOstart = new ctrlMOStart();

        //
        ctrlAnodInspDetail ctrlAnodInspdetail = new ctrlAnodInspDetail();
        ctrlAnodQtyChangeDetail ctrlAnodQtyChangedetail = new ctrlAnodQtyChangeDetail();
        ctrlBusInspDetail ctrlBusInspdetail = new ctrlBusInspDetail();
        ctrlBusInspMisReturnDetail ctrlBusInspMisReturndetail = new ctrlBusInspMisReturnDetail();
        ctrlF3StoreDetail ctrlF3Storedetail = new ctrlF3StoreDetail();
        ctrlHandInspDetail ctrlHandInspdetail = new ctrlHandInspDetail();
        ctrlHandInspMisReturnDetail ctrlHandInspMisReturndetail = new ctrlHandInspMisReturnDetail();
        ctrlHandInspStatus ctrlHandInspstatus = new ctrlHandInspStatus();
        ctrlInspAnodDetail ctrlInspAnoddetail = new ctrlInspAnodDetail();
        ctrlInspBusMisReturnDetail ctrlInspBusMisReturndetail = new ctrlInspBusMisReturnDetail();
        ctrlInspF3Detail ctrlInspF3detail = new ctrlInspF3Detail();
        ctrlInspHandMisReturnDetail ctrlInspHandMisReturndetail = new ctrlInspHandMisReturnDetail();
        ctrlMAchineHandDetail ctrlMachineHandDetail = new ctrlMAchineHandDetail();

        //
        ctrlDeadlineCaculation ctrlDeadlinecaculation = new ctrlDeadlineCaculation();
        ctrlDeadlineConfirm ctrlDeadlineconfirm = new ctrlDeadlineConfirm();

        //
        ctrlMonthlyExpence ctrlMonthlyexpence = new ctrlMonthlyExpence();
        ctrlLaborCharge ctrlLaborcharge = new ctrlLaborCharge();
        ctrlMachineCharge ctrlMachinecharge = new ctrlMachineCharge();
        ctrlMonthlyChargeUpdate ctrlMonthlychargeUpdate = new ctrlMonthlyChargeUpdate();

        //
        ctrlQuatationList ctrlQuationlist = new ctrlQuatationList();
        ctrlQuotationCaculation ctrlQuotioncaculation = new ctrlQuotationCaculation();
        ctrlQuotationMachine ctrlQuotaitonmachine = new ctrlQuotationMachine();
        ctrlQuotationMaterial ctrlQuotationmaterial = new ctrlQuotationMaterial();
        ctrlQuotationView ctrlQuotationView = new ctrlQuotationView();

        //
        ctrlDataTranfer ctrlDatatranfer = new ctrlDataTranfer();
        ctrlJigReport ctrlJigreport = new ctrlJigReport();
        ctrlLaborWTSDetail ctrlLaborWTSdetail = new ctrlLaborWTSDetail();
        ctrlLaborWTSFind ctrlLaborWTSfine = new ctrlLaborWTSFind();
        ctrlLaborWTSInput ctrlLaborWTSinput = new ctrlLaborWTSInput();
        ctrlLaborWTStoGA ctrlLaborWTStoga = new ctrlLaborWTStoGA();
        ctrlMachineDailyCheck ctrlMachinedailycheck = new ctrlMachineDailyCheck();
        ctrlMachineDailyReport ctrlMachinedailyreport = new ctrlMachineDailyReport();
        ctrlMachineWTSDetail ctrlMachineWTSdetail = new ctrlMachineWTSDetail();
        ctrlMachineWTSFind ctrlMachineWTSfind = new ctrlMachineWTSFind();
        ctrlMachineWTSInput ctrlMachineWTSinput = new ctrlMachineWTSInput();
        ctrlMachineWTStoGA ctrlMachineWTStoga = new ctrlMachineWTStoGA();
        ctrlOverTime ctrlOvertime = new ctrlOverTime();
        ctrlStaffDailyWorkingTime ctrlStaffDailyworkingtime = new ctrlStaffDailyWorkingTime();
        ctrlStaffWorkingTimeCheck ctrlStaffWorkingTimecheck = new ctrlStaffWorkingTimeCheck();


        public ctrl_ProductMain()
        {
            InitializeComponent();
        }

        private void navBarItemSection_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navBarItemWork_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlWork);
            ctrlWork.Dock = DockStyle.Fill;
        }

        private void navBarItemOption_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlOption);
            ctrlOption.Dock = DockStyle.Fill;
        }

        private void navBarItemJig_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlJig);
            ctrlJig.Dock = DockStyle.Fill;
        }

        private void navBarItemExpence_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlExpence);
            ctrlExpence.Dock = DockStyle.Fill;
        }

        private void navBarItemPartList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlPartlist);
            ctrlPartlist.Dock = DockStyle.Fill;
        }

        private void navBarItemPartMaterial_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlPartmaterial);
            ctrlPartmaterial.Dock = DockStyle.Fill;
        }

        private void navBarItemOptionData_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlOptiondata);
            ctrlOptiondata.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachine);
            ctrlMachine.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineGroup_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineGroup);
            ctrlMachineGroup.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineCapacity_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachinecapacity);
            ctrlMachinecapacity.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineDailyTime_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineDailytime);
            ctrlMachineDailytime.Dock = DockStyle.Fill;
        }

        private void navBarItemBusOderList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusoderlist);
            ctrlBusoderlist.Dock = DockStyle.Fill;
        }

        private void navBarItemBusOderCancel_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusodercancel);
            ctrlBusodercancel.Dock = DockStyle.Fill;
        }

        private void navBarItemBusOderDeadlineChange_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusoderDeadline);
            ctrlBusoderDeadline.Dock = DockStyle.Fill;
        }

        private void navBarItemBusOderQty_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusoderqtychange);
            ctrlBusoderqtychange.Dock = DockStyle.Fill;
        }

        private void navBarItemMoList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMO);
            ctrlMO.Dock = DockStyle.Fill;
        }

        private void navBarItemMONoUpdate_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMONoupdate);
            ctrlMONoupdate.Dock = DockStyle.Fill;
        }

        private void navBarItemMOSelect_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOselect);
            ctrlMOselect.Dock = DockStyle.Fill;
        }

        private void navBarItemMOSheetView_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOsheetview);
            ctrlMOsheetview.Dock = DockStyle.Fill;
        }

        private void navBarItemMOMaterial_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOMat);
            ctrlMOMat.Dock = DockStyle.Fill;
        }

        private void navBarItemMOstart_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOstart);
            ctrlMOstart.Dock = DockStyle.Fill;
        }

        private void navBarItemMOOption_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOoption);
            ctrlMOoption.Dock = DockStyle.Fill;
        }

        private void navBarItemMOQtyStatus_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOQtystatus);
            ctrlMOQtystatus.Dock = DockStyle.Fill;
        }

        private void navBarItemMOOptionStatus_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOoptionstatus);
            ctrlMOoptionstatus.Dock = DockStyle.Fill;
        }

        private void navBarItemMOQtyChange_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOQtychange);
            ctrlMOQtychange.Dock = DockStyle.Fill;
        }

        private void navBarItemMOFinish_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOFinish);
            ctrlMOFinish.Dock = DockStyle.Fill;
        }

        private void navBarItemMOActualPrice_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMOActual);
            ctrlMOActual.Dock = DockStyle.Fill;
        }

        private void navBarItemMONGCheckDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMONGcheckdetail);
            ctrlMONGcheckdetail.Dock = DockStyle.Fill;
        }

        private void navBarItemMONGCheckInput_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMONGcheckinput);
            ctrlMONGcheckinput.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineHandDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineHandDetail);
            ctrlMachineHandDetail.Dock = DockStyle.Fill;
        }

        private void navBarItemInspHandMisReturn_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlInspHandMisReturndetail);
            ctrlInspHandMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navBarItem3_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlHandInspMisReturndetail);
            ctrlHandInspMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navBarItem4_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusInspdetail);
            ctrlBusInspdetail.Dock = DockStyle.Fill;
        }

        private void navBarItem5_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlInspBusMisReturndetail);
            ctrlInspBusMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navBarItem6_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlBusInspMisReturndetail);
            ctrlBusInspMisReturndetail.Dock = DockStyle.Fill;
        }

        private void navBarItem7_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlInspAnoddetail);
            ctrlInspAnoddetail.Dock = DockStyle.Fill;
        }

        private void navBarItem8_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlAnodQtyChangedetail);
            ctrlAnodQtyChangedetail.Dock = DockStyle.Fill;
        }

        private void navBarItem9_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlAnodInspdetail);
            ctrlAnodInspdetail.Dock = DockStyle.Fill;
        }

        private void navBarItem10_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlInspF3detail);
            ctrlInspF3detail.Dock = DockStyle.Fill;
        }

        private void navBarItem11_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlF3Storedetail);
            ctrlF3Storedetail.Dock = DockStyle.Fill;
        }

        private void navBarItemDeadlineConfirm_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlDeadlineconfirm);
            ctrlDeadlineconfirm.Dock = DockStyle.Fill;
        }

        private void navBarItemDeadlineCaculation_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlDeadlinecaculation);
            ctrlDeadlinecaculation.Dock = DockStyle.Fill;
        }

        private void navBarItemMonthlyExpence_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMonthlyexpence);
            ctrlMonthlyexpence.Dock = DockStyle.Fill;
        }

        private void navBarItemMonthlyChargeUpdate_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMonthlychargeUpdate);
            ctrlMonthlychargeUpdate.Dock = DockStyle.Fill;
        }

        private void navBarItemLaborCharge_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlLaborcharge);
            ctrlLaborcharge.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineCharge_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachinecharge);
            ctrlMachinecharge.Dock = DockStyle.Fill;
        }

        private void navBarItemQuotationList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlQuationlist);
            ctrlQuationlist.Dock = DockStyle.Fill;
        }

        private void navBarItemQuotionMachine_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlQuotaitonmachine);
            ctrlQuotaitonmachine.Dock = DockStyle.Fill;
        }

        private void navBarItemQuotationMaterial_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlQuotationmaterial);
            ctrlQuotationmaterial.Dock = DockStyle.Fill;
        }

        private void navBarItemQuotationCaculation_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlQuotioncaculation);
            ctrlQuotioncaculation.Dock = DockStyle.Fill;
        }

        private void navBarItemQuotationView_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlQuotationView);
            ctrlQuotationView.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineWTSDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineWTSdetail);
            ctrlMachineWTSdetail.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineWTSInput_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineWTSinput);
            ctrlMachineWTSinput.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineDailyReport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachinedailyreport);
            ctrlMachinedailyreport.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineDailyCheck_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachinedailycheck);
            ctrlMachinedailycheck.Dock = DockStyle.Fill;
        }

        private void navBarItemMachineWTSFind_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineWTSfind);
            ctrlMachineWTSfind.Dock = DockStyle.Fill;
        }

        private void navBarItemWTSMachinetoGA_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlMachineWTStoga);
            ctrlMachineWTStoga.Dock = DockStyle.Fill;
        }

        private void navBarItemJigReport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlJigreport);
            ctrlJigreport.Dock = DockStyle.Fill;
        }

        private void navBarItemLaborWTSDeatail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlLaborWTSdetail);
            ctrlLaborWTSdetail.Dock = DockStyle.Fill;
        }

        private void navBarItemLaborWTSInput_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlLaborWTSinput);
            ctrlLaborWTSinput.Dock = DockStyle.Fill;
        }

        private void navBarItemStaffDailyWorkingTime_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlStaffDailyworkingtime);
            ctrlStaffDailyworkingtime.Dock = DockStyle.Fill;
        }

        private void navBarItemStaffWorkingTimeCheck_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlStaffWorkingTimecheck);
            ctrlStaffWorkingTimecheck.Dock = DockStyle.Fill;
        }

        private void navBarItemLaborWTSFind_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlLaborWTSfine);
            ctrlLaborWTSfine.Dock = DockStyle.Fill;
        }

        private void navBarItemWTSLaborToGA_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlLaborWTStoga);
            ctrlLaborWTStoga.Dock = DockStyle.Fill;
        }

        private void navBarItemOverTime_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlOvertime);
            ctrlOvertime.Dock = DockStyle.Fill;
        }

        private void navBarItemDataTranfer_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spMain.Panel2.Controls.Clear();
            spMain.Panel2.Controls.Add(ctrlDatatranfer);
            ctrlDatatranfer.Dock = DockStyle.Fill;
        }
    }
}
